# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
import os 

ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))

LOG_PATH = os.path.join(ROOT,"log","webserver.log")

DOWNLOAD_HISTORY_DB_PATH = os.path.join(ROOT,"downdb.db")


class Config(object):
    pass
    
class DevConfig(Config):
    debug = True
    SQLALCHEMY_DATABASE_URI = "sqlite:///downdb.db"    #数据库地址与命名
    #SQLALCHEMY_DATABASE_URI = 'sqlite://' + DOWNLOAD_HISTORY_DB_PATH
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_ECHO = False                       